import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const dashboard: AppRouteModule = {
  path: '/operation',
  name: 'Operation',
  component: LAYOUT,
  redirect: '/operation/index',
  meta: {
    icon: 'ant-design:security-scan',
    title: t('操作中心'),
    orderNo: 10,
  },
  children: [
    {
      path: 'serviceTask',
      name: 'ServiceTask',
      component: () => import('/@/views/operation/serviceTask/ServiceTaskList.vue'),
      meta: {
        title: t('发布任务'),
        icon: 'ant-design:file-protect',
        orderNo: 1,
      },
    },
    {
      path: 'taskSettle',
      name: 'TaskSettle',
      component: () => import('/@/views/operation/taskSettle/CaishuiTaskSettleList.vue'),
      meta: {
        title: t('任务结算'),
        icon: 'ant-design:schedule',
        orderNo: 5,
      },
    },
    {
      path: 'settleList',
      name: 'SettleList',
      component: () => import('/@/views/operation/settleList/CaishuiTaskSettleListList.vue'),
      meta: {
        title: t('业务结算清单'),
        icon: 'ant-design:file-done-outlined',
        orderNo: 10,
      },
    },
  ],
};

export default dashboard;
